package com.classroompie.classroompiepojo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("文件上传请求信息")
public class
FileRequest {
    @ApiModelProperty(value = "文件相对路径路径", example = "/yumi/drink（其中yumi不更改，drink表示对应事件，可进行更改）")
    @NotNull
    private String filePath;
    @ApiModelProperty(value = "二进制文件", example = "二进制文件")
    @NotEmpty
    private MultipartFile file;
}
